/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package east2west.interfaces;

import east2west.dto.RoleDTO;
import java.util.ArrayList;

/**
 *
 * @author anhtuan
 */
public interface RoleInterface {

    ArrayList<RoleDTO> readByAll();

    RoleDTO findById(int id);

    ArrayList<RoleDTO> findByName(String name);

    ArrayList<RoleDTO> findByDTO(RoleDTO dto);

    boolean create(RoleDTO role);

    boolean delete(RoleDTO role);

    boolean delete(int id);

    boolean update(RoleDTO role);
}
